﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ComplexNumbers
{
    class TestComplex
    {
        static void Main(string[] args)
        {
            ComplexNumber complex1 = new ComplexNumber(1.2, 4.5);
            ComplexNumber complex2 = new ComplexNumber(0.8, 0.5);
            Console.WriteLine(complex1 - complex2);
            Console.WriteLine(new ComplexNumber(4,-2));

            double x = (double)complex2;
            Console.WriteLine(x);
            ComplexNumber complex3 = (ComplexNumber)x;
            Console.WriteLine(complex3);
            complex1[0] = 7;
            complex1[1] = -14;
            Console.WriteLine(complex1);
        }
    }
}
